package pojo;

import java.io.Serializable;
import lombok.Data;

/**
 * classroom
 * @author 
 */
@Data
public class Classroom implements Serializable {
    private String classroomid;

    private String classroomname;

    private Short classroomuseid;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Classroom other = (Classroom) that;
        return (this.getClassroomid() == null ? other.getClassroomid() == null : this.getClassroomid().equals(other.getClassroomid()))
            && (this.getClassroomname() == null ? other.getClassroomname() == null : this.getClassroomname().equals(other.getClassroomname()))
            && (this.getClassroomuseid() == null ? other.getClassroomuseid() == null : this.getClassroomuseid().equals(other.getClassroomuseid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getClassroomid() == null) ? 0 : getClassroomid().hashCode());
        result = prime * result + ((getClassroomname() == null) ? 0 : getClassroomname().hashCode());
        result = prime * result + ((getClassroomuseid() == null) ? 0 : getClassroomuseid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", classroomid=").append(classroomid);
        sb.append(", classroomname=").append(classroomname);
        sb.append(", classroomuseid=").append(classroomuseid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}